<template>
	<view class="container">
		<view class="top">
			<view class="order-tab">
				<view class="tab-item" :class="i==tab_index?'select':''" v-for="(item,i) in tabList" :key="i" @click="tab_index=i">
					<text>{{item.text}}</text>
				</view>
			</view>
		</view>
		<view class="list">
			<view class="item" @click="toDetail">
				<view class="user-status">
					<view class="left">
						<image :src="$img_path('/mall/5.png')" mode="aspectFill"></image>
						<text>赵六</text>
					</view>
					<text :style="{color:true?'#FFCC26': false ? '#0291FF' : '#FF4A4A'}">待审核</text>
				</view>
				<view class="info">
					<text>证书名称证书名称</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabList:[
					{
						text:'待审核',
						value:1
					},{
						text:'已通过',
						value:1
					},{
						text:'被驳回',
						value:1
					}
				],
				tab_index:0,
				
			};
		},
		methods:{
			toDetail(){
				uni.navigateTo({
					url:'/pagesRegion/certificateReview/detail'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.container{
	.top{
		position: sticky;
		top: 0;
		left: 0;
		right: 0;
		z-index: 3;
		background-color: #FFFFFF;
		.order-tab{
			padding: 24rpx 104rpx 12rpx; 
			box-sizing: border-box;
			display: flex;
			align-items: center;
			justify-content: space-between;
			background-color: #FFFFFF;
			.tab-item{
				text{
					font-weight: 400;
					font-size: 32rpx;
					color: #333333;
					line-height: 44rpx;
					position: relative;
				}
				&.select{
					text{
						font-weight: bold;
						font-size: 32rpx;
						color: #E72A2A;
						line-height: 44rpx;
						&::after{
							content: '';
							width: 52rpx;
							height: 8rpx;
							background: #E72A2A;
							border-radius: 4rpx;
							position: absolute;
							top: calc(100% + 4rpx);
							left: 50%;
							transform: translateX(-50%);
						}
					}
				}
			}
		}
	}
	.list{
		padding: 0 22rpx;
		box-sizing: border-box;
		.item{
			background: #FFFFFF;
			border-radius: 20rpx;
			margin-top: 20rpx;
			padding: 24rpx 22rpx 34rpx 28rpx;
			box-sizing: border-box;
			.user-status{
				display: flex;
				align-items: center;
				justify-content: space-between;
				.left{
					display: flex;
					align-items: center;
					image{
						width: 84rpx;
						height: 84rpx;
						border-radius: 50%;
					}
					text{
						font-weight: bold;
						font-size: 32rpx;
						color: #000000;
						line-height: 44rpx;
						margin-left: 20rpx;
					}
				}
				&>text{
					font-weight: 400;
					font-size: 32rpx;
					line-height: 44rpx;
				}
			}
			.info{
				font-weight: bold;
				font-size: 32rpx;
				color: #000000;
				line-height: 44rpx;
				text{
					margin-right: 16rpx;
				}
				margin-top: 20rpx;
			}
			.city{
				font-weight: 400;
				font-size: 32rpx;
				color: #000000;
				line-height: 44rpx;
				text{
					font-weight: bold;
				}
				margin-top: 20rpx;
			}
		}
	}
}
</style>
